<?php
    
    require_once "initazure.php";
    use WindowsAzure\Common\ServicesBuilder;
    use WindowsAzure\Common\ServiceException;

    try {                
        $tableRestProxy = ServicesBuilder::getInstance()->createTableService($connectionString);
        
        // Create table.
        $tableRestProxy->createTable("myproduct");      
        echo "Created Table was success";

    } catch(ServiceException $e){       
        $code = $e->getCode();
        $error_message = $e->getMessage();
        echo $code.": ".$error_message."<br />";
    }

?>
